<?php
/* @var $this SnapupController */

?>


	<tr>
		<td class="pl15">
			<?php echo CHtml::checkBox('id[]','',array('class'=>'chk f_l chkitem','onclick'=>'CheckList("ids[]","id[]")','value'=>$data->zpt_id))?>
			<span><?php echo CHtml::link(mb_substr($data->zpt_title,0,12,'utf8'),'javascript:',array('class'=>''))?></span>
		</td>
		<td width="16%"><?php echo CHtml::link(mb_substr($data->company->zc_name,0,20,'utf8'),$data->company->domain,array('class'=>''))?></td>
		<td width="13%">
			<?php
				if($data->zpt_status==1){
					echo '<span class="c_f60">待审核</span>';
				}elseif($data->zpt_status==2){
					 if($data->zpt_start_time>time()){
							echo '<span class="c_green3">未开始</span>';
						}elseif($data->zpt_end_time<time()){
							echo '<span class="c_999">已结束</span>';
						}else{
							if($data->zpt_close==1){
								echo '<span class="c_f60">进行中</span>';
							}elseif($data->zpt_close==2){
								echo '<span class="c_999">已关闭</span>';
							}
						}
				}elseif($data->zpt_status==3){
					echo '<span class="c_999">未通过</span>';
				}
			?>
		</td>
		<td width="30%"><?php echo date('Y-m-d H:i',$data->zpt_start_time)?> 到 <?php echo date('Y-m-d H:i',$data->zpt_end_time)?></td>
		<td class="operate" width="12%">
			<?php echo CHtml::link(Yii::t('cmp','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("/manage/snapup/delete/id/'.$data->zpt_id.'","你确定要删除这条信息吗？")'))?>
		</td>
	</tr>

